import Vue from 'vue'
import FormateDates from './utils/data'
Vue.mixin({
  methods: {
    hasAuth(perm) {
      var authority = this.$store.state.menus.permList

      return authority.indexOf(perm) > -1
    },
    FormateDate(val) {
      return FormateDates.formatDateTime4(val)
    },
  },
})
